﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Eureka</title>
    <link href="../../lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../lib/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" />
    <link href="../../lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
    <div class="winui-toolbar">
        <div class="winui-tool">
            <button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i>刷新数据</button>
            <button id="editMenu" class="winui-toolbtn"><i class="fa fa-pencil" aria-hidden="true"></i>编辑节点状态</button>
        </div>
    </div>
    <div style="margin:auto 10px;">
        <table id="eureka" lay-filter="eureka_table"></table>
        <script type="text/html" id="barMenu">
            <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        </script>
        <script type="text/html" id="isCanary">
            {{#  if(d.canaryFlag && d.canaryFlag !=''){ }}
			{{ d.canaryFlag }}
            {{#  } else { }}
           	 正常节点
            {{#  } }}
        </script>
        <script type="text/html" id="status">
            {{#  if(d.status =='UP'){ }}
			<span style="color:green">{{ d.status }}</span>
            {{#  } else { }}
           	<span style="color:red">{{ d.status }}</span>
            {{#  } }}
        </script>
        <div class="tips">Tips：1.节点DOWN掉后可以进行升级等操作</div>
    </div>
    <script src="../../lib/layui/layui.js"></script>
    <script type="text/javascript">
        layui.config({
            base: '../../js/'
        }).use('eureka');
    </script>
</body>
</html>